<template>
  <router-view></router-view>
</template>
<script lang="ts" setup>
import { onBeforeRouteUpdate, useRouter } from 'vue-router';
import { onMounted } from 'vue'

const router = useRouter()


// 当点击了登录后，直击跳转到 login-user 组件
onMounted(() => {
  router.push('/login/user')
})



onBeforeRouteUpdate(() => {
  // console.log(1111)
})
</script>
<style scoped lang="scss"></style>